package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;

/**
 * 抛出异常的工具类
 */
public class Exceptions {

    public static void cast(Code code){
        throw new StockException(code);
    }


    private Exceptions(){

    }
}
